home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Serial / s / GetTxRate < prev    next >
Text File  |  1995-08-26  |  1KB  |  32 lines

  1. ;   ####             #    #     # #
  2. ;   #   #            #    #       #          The FreeWare C library for
  3. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  4. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  5. ;   #   # ####  ###  ##   #     # #  #
  6. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  7. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  8. ;   ________________________________________________________________________
  9. ;
  10. ;   File:    Serial.s.GetTxRate
  11. ;   Author:  Copyright © 1993 Jason Howat
  12. ;   Version: 1.00 (21 Nov 1993)
  13. ;   Purpose: Read the baud rate of data transmitted on the serial line.
  14.  
  15.         GET     ^.h.regdefs
  16.         GET     ^.h.swinos
  17.         GET     ^.h.macros
  18.  
  19. ; serial_rate Serial_GetTxRate(void);
  20.  
  21.         PREAMBLE
  22.         STARTCODE Serial_GetTxRate
  23. ;
  24.         STMFD   sp!, {lr}
  25.         MOV     a1, #6
  26.         MVN     a2, #0
  27.         SWI     SWI_OS_SerialOp + XOS_Bit
  28.         MOV     a1, a2
  29.         LDMFD   sp!, {pc}^
  30. ;
  31.         END
  32.